Method Shells: Avoiding Conflicts on Destructive Class Extensions by Implicit Context Switches
نویسندگان
چکیده
We propose method shells, which is a module system for avoiding conflicts on customization by language mechanisms such as aspects in AspectJ and open classes in Ruby. These mechanisms allow programmers to customize a library without rewriting original source code but by only describing differences in a separate file. We call these mechanisms destructive class extensions. A problem with destructive class extensions is conflicts on customization. Different customizations may differently modify the same class. To address this problem, we propose a new module system named method shells. With this system, programmers can avoid conflicts since the module system automatically switches a set of customizations that has to be applied together according to the contexts declared by programmers. We present the idea of this module system and then its formal semantics. We also present an extension of Java that supports method shells.
منابع مشابه
Designing Path for Robot Arm Extensions Series with the Aim of Avoiding Obstruction with Recurring Neural Network
In this paper, recurrent neural network is used for path planning in the joint space of the robot with obstacle in the workspace of the robot. To design the neural network, first a performance index has been defined as sum of square of error tracking of final executor. Then, obstacle avoidance scheme is presented based on its space coordinate and its minimum distance between the obstacle and ea...
متن کاملOn rejected arguments and implicit conflicts: The hidden power of argumentation semantics
Abstract argumentation frameworks (AFs) are one of the most studied formalisms in AI and are formally simple tools to model arguments and their conflicts. The evaluation of an AF yields extensions (with respect to a semantics) representing alternative acceptable sets of arguments. For many of the available semantics two effects can be observed: there exist arguments in the given AF that do not ...
متن کاملInter-group conflicts experienced by Iranian nurses: A qualitative study
Introduction: Conflict among nurses has been identified as a significant issue within healthcare settings all around the world. Nurses confront with different types of interpersonal conflicts in their work. It's important to know causes and effects of conflicts in nursing units before deciding to manage them. Aim: describing the experiential aspects of nurses' inter group conflicts focused on c...
متن کاملThe new implicit finite difference method for the solution of time fractional advection-dispersion equation
In this paper, a numerical solution of time fractional advection-dispersion equations are presented.The new implicit nite dierence methods for solving these equations are studied. We examinepractical numerical methods to solve a class of initial-boundary value fractional partial dierentialequations with variable coecients on a nite domain. Stability, consistency, and (therefore) convergenceof t...
متن کاملApplying a full implicit finite-difference method in jet impingement heat transfer studies
Jet impingement heat transfer is an effective and practical approach that is employed in many industrial processes where heating, cooling, or drying is required. Details of the heat or mass transfer rate have been investigated both experimentally and numerically and can be found in the published literature. In most of the numerical studies, control-volume approach has been employed to solve the...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2013